<template>
  <el-form-item label="状态">
    <el-radio-group v-model="form.status">
      <el-radio v-for="(d, i) in options.shop_status" :key="i" :label="d.value">
        {{ d.label }}
      </el-radio>
    </el-radio-group>
  </el-form-item>
  <el-form-item label="是否下载订单/报表">
    <el-switch v-model="form.is_download_orders" inline-prompt active-text="启用" inactive-text="禁用" :active-value='1' :inactive-value='0' />
  </el-form-item>
  <el-form-item label="是否预生成追踪号">
    <el-switch v-model="form.is_pre_generate" inline-prompt active-text="启用" inactive-text="禁用" :active-value='1' :inactive-value='0' />
  </el-form-item>
  <el-form-item label="是否标记平台发货">
    <el-switch v-model="form.is_platform_shipment" inline-prompt active-text="启用" inactive-text="禁用" :active-value='1' :inactive-value='0' />
  </el-form-item>
</template>

<script setup>
const props = defineProps({
  modelValue: { type: Object, default: () => ({}) },
  options: { type: Object, default: () => ({}) },
})
const emit = defineEmits(['update:modelValue'])
const form = computed({
  get() {
    return props.modelValue
  },
  set(val) {
    emit('update:modelValue', val)
  }
})
</script>